<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>博艺网-购物车</title>
    <link rel="shortcut icon" type="image/x-icon" href="http://img.boyitongcheng.com/favicon.ico" media="screen" />
    <link href="/common/css/common.css" rel="stylesheet" type="text/css"/>
    <link href="/common/css/iconfont.css" rel="stylesheet" type="text/css"/>
    <link href="/common/css/shopCart.css" rel="stylesheet"/>
    <script src="/common/js/jquery-1.6.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/common/js/dateformat.js"></script>

</head>

<body>


<#include "../header.ftl" />

<#include "../banner_other.ftl" />

<div class="sub_nav">
    <div class="main">
        <ul class="sub_navtop">

            <li><a href="/index">首页</a></li>
        <#if topList??>

            <#list topList as top>
                <li><a href="/list?channel_id=${top.getId()}&position_id=${top.getPositionId()}&style_type=0&price=0&area=0" target="_blank">${top.getName()}</a></li>
            </#list>

        </#if>

        </ul>
    </div>
</div>

<div class="shopcart">
    <div class="main">
        <h2>购物车</h2>
        <form id="form" method="post" action="/order/submitOrder">
        <table>
            <tr>
                <th class="check">标识</td>
                <th >商家</td>
                <th >服务类型</td>
                <th >订单金额（元）</td>
                <th >定金金额（元）</td>
                <th >执行时间</td>
                <th >就餐时间</td>
                <th >数量</td>
                <th >订单备注</td>
                <th >操作</td>
            </tr>
            <tr class="fenge"></tr>

        <#if trolleyList??>
            <#list trolleyList as trolley>
                <tr>
                    <td class="check">
                        <#--<input type="checkbox" id="t_${trolley.getId()?string}" name="t_${trolley.getId()?string}"/>-->
                        <a href="#">
                            <div>
                                <img src="http://img.boyitongcheng.com/${trolley.getUser().getAvatar()!''}!200x200" class="img-responsive"/>
                            </div>
                        </a></td>
                    <td >
                        <a href="#"><span>${trolley.getUser().getCnName()}</span></a>
                    </td>
                    <td >${trolley.getProduct().getName()}</td>
                    <td class="amount">￥${trolley.getProduct().getCurrentPrice()?string("0.00")}元</td>
                    <td class="amount">￥${trolley.getProduct().getDeposit()?string("0.00")}元</td>
                    <td class="amount">${trolley.getScheduleDate()?date("yyyy-MM-dd")}</td>
                    <td class="amount">${trolley.getDinnerType()}</td>
                    <td class="amount">${trolley.getAmount()?string}</td>
                    <td class="amount">${trolley.getDescn()!''}</td>
                    <td ><a href="/user/deleteTrolley?trolley_id=${trolley.getId()?string}">删除</a></td>
                </tr>
            </#list>
        </#if>

        </table>
        <div class="sc-bottom">

        <#if trolleyList?? && (trolleyList?size > 0)>
        <div class="sub-l">
            <p style="margin-top: 2px;">选择支付方式:</p>
            <p><input type="radio" name="pay_type" value="1" checked/><img src="/common/icon/zhifubao.png"/></p>
            <#--<p><input type="radio" name="pay_type" value="2"/><img src="/common/icon/weixinzhifu.png"/></p>-->
        </div>

        <#--<a href="#">选择支付方式:</a>-->
        <#--<p class="checkall"><input type="checkbox"/>全选</p>-->
        <#--<a href="#">删除选中的婚礼人</a>-->
        <#--<div>已选中的婚礼人<span>2</span>个</div>-->
        <#--<p>订单总价：<span>￥2900.00元</span></p>-->
        <#--<p>您需要支付订金：<span>￥1400.00元</span></p>-->
            <button type="submit">去下单</button>
        </#if>
        </div>
       </form>
    </div>
</div>




<#include "../help_link.ftl"/>

<#include "../footer.ftl" />

<#include "../toolbar.ftl" />

</body>

</html>
